<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>两列布局</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        main {
            display: grid;
            grid-template-columns: 200px auto;
            /*grid-template-columns:repeat(auto-fill, 200px);*/
            grid-template-rows: 50% 50%;
        }

        article {
            background-color: cyan;
            height: 100vh;
        }

        article:nth-of-type(2) {
            background-color: pink;
        }
    </style>
</head>
<body>
<main>
    <article></article>
    <article></article>
</main>
</body>
</html>
